cmake_minimum_required(VERSION 2.8.3)
project(ipa_building_msgs)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
	actionlib
	actionlib_msgs
	genmsg
	geometry_msgs
	message_generation
	sensor_msgs
	std_msgs
)

# build with c++11
add_compile_options(-std=c++11)

#######################################
## Declare ROS messages and services ##
#######################################

## Add the Files for actionlib
add_action_files(
	DIRECTORY action
	FILES 
		MapSegmentation.action
		FindRoomSequenceWithCheckpoints.action
		RoomExploration.action
)

## Generate messages in the 'msg' folder
add_message_files(
	DIRECTORY
		msg
	FILES 
		RoomInformation.msg
		RoomSequence.msg
)

## Generate services in the 'srv' folder
add_service_files(
	DIRECTORY
		srv
	FILES 
		CheckCoverage.srv
		ExtractAreaMapFromLabeledMap.srv
)

## Generate added messages and services with any dependencies listed here
generate_messages(
	DEPENDENCIES
		actionlib_msgs
		geometry_msgs
		sensor_msgs
		std_msgs
)

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
	CATKIN_DEPENDS
		actionlib_msgs
		geometry_msgs
		message_runtime
		sensor_msgs
		std_msgs
)

include_directories(
	${catkin_INCLUDE_DIRS}
)
